namespace MsForgeReboot.Framework.Entities {
    #region Usings

    using System;
    using System.ComponentModel.DataAnnotations;

    #endregion

    public class Comment {
        #region Public Properties

        /// <summary>
        ///   Gets or sets the post id.
        /// </summary>
        /// <value> The post id. </value>
        public BlogPost BlogPost { get; set; }

        /// <summary>
        ///   Gets or sets the body.
        /// </summary>
        /// <value> The body. </value>
        [DataType(DataType.MultilineText)]
        [Required(AllowEmptyStrings = false)]
        public string Body { get; set; }

        /// <summary>
        ///   Gets or sets the author.
        /// </summary>
        [MaxLength(150)]
        [Required(AllowEmptyStrings = false)]
        public string CommentBy { get; set; }

        [MaxLength(100)]
        [RegularExpression(ValidationExpressions.Email)]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        /// <summary>
        ///   Gets or sets the commented on.
        /// </summary>
        /// <value> The commented on. </value>
        [DataType(DataType.DateTime)]
        public DateTime CommentedOn { get; set; }

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        /// <value> The id. </value>
        public int Id { get; set; }

        #endregion
    }
}